// import config from '/jiess.config.js';
// export const envs = config.SwitchEnv.envs;
export const envs = {};
export const services = {};
export const options = [];
// ==============================================================================
for (let k in envs) {
  let { label, protocol = 'http:', hostname, port = 80, pathname = '' } = envs[k];
  if (hostname) {
    services[k] = `${protocol}//${hostname}:${port}/${pathname}`;
  } else {
    // 一般用于代理环境
    services[k] = '';
  }
  options.push({ label, value: k, url: services[k] });
}
